<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::PoolingLayer&lt; VectorType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_pooling_layer.html">PoolingLayer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_pooling_layer-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::PoolingLayer&lt; VectorType &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__models.html">Models</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Performs Pooling operations for a given input image.  
 <a href="classshark_1_1_pooling_layer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_pooling_layer_8h_source.html">shark/Models/PoolingLayer.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::PoolingLayer&lt; VectorType &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_pooling_layer__inherit__graph.png" border="0" usemap="#ashark_1_1_pooling_layer_3_01_vector_type_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_pooling_layer_3_01_vector_type_01_4_inherit__map" id="ashark_1_1_pooling_layer_3_01_vector_type_01_4_inherit__map">
<area shape="rect" title="Performs Pooling operations for a given input image." alt="" coords="28,109,164,150"/>
<area shape="rect" href="classshark_1_1_abstract_model.html" title="Base class for all Models." alt="" coords="5,5,187,61"/>
<area shape="poly" title=" " alt="" coords="99,77,99,109,93,109,93,77"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:af1c3bf01a5867b9c2cea965b3f5e5d2b" id="r_af1c3bf01a5867b9c2cea965b3f5e5d2b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_model.html#a518304e95092673b7b6438cace052ef6">base_type::BatchInputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a></td></tr>
<tr class="separator:af1c3bf01a5867b9c2cea965b3f5e5d2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66639a814abf022b6935327f880f6f31" id="r_a66639a814abf022b6935327f880f6f31"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_model.html#aa0c72e230b9a1324c95ba8ac0b07ba13">base_type::BatchOutputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a></td></tr>
<tr class="separator:a66639a814abf022b6935327f880f6f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7cdb7122418ae31bef77d22aae75910" id="r_ac7cdb7122418ae31bef77d22aae75910"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_i_parameterizable.html#a2ad5e2e60b2b352988b41f46024d790b">base_type::ParameterVectorType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#ac7cdb7122418ae31bef77d22aae75910">ParameterVectorType</a></td></tr>
<tr class="separator:ac7cdb7122418ae31bef77d22aae75910"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_model"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_model')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_model.html">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a></td></tr>
<tr class="memitem:a76a2d024b6013037b072596fe4f9f829 inherit pub_types_classshark_1_1_abstract_model" id="r_a76a2d024b6013037b072596fe4f9f829"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829">Feature</a> { <a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829a89a819e2614f818baa23c5c8fdd4393d">HAS_FIRST_PARAMETER_DERIVATIVE</a> = 1
, <a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829a82b5c22e1b95f20aff01b4b39e86c607">HAS_FIRST_INPUT_DERIVATIVE</a> = 4
 }</td></tr>
<tr class="separator:a76a2d024b6013037b072596fe4f9f829 inherit pub_types_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a714e85d7a6cd2b68898cb5dbb25c37d4 inherit pub_types_classshark_1_1_abstract_model" id="r_a714e85d7a6cd2b68898cb5dbb25c37d4"><td class="memItemLeft" align="right" valign="top">typedef InputTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a714e85d7a6cd2b68898cb5dbb25c37d4">InputType</a></td></tr>
<tr class="memdesc:a714e85d7a6cd2b68898cb5dbb25c37d4 inherit pub_types_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the input type of the model.  <br /></td></tr>
<tr class="separator:a714e85d7a6cd2b68898cb5dbb25c37d4 inherit pub_types_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e5acf043e3a76b50d15a852365801b4 inherit pub_types_classshark_1_1_abstract_model" id="r_a8e5acf043e3a76b50d15a852365801b4"><td class="memItemLeft" align="right" valign="top">typedef OutputTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a8e5acf043e3a76b50d15a852365801b4">OutputType</a></td></tr>
<tr class="memdesc:a8e5acf043e3a76b50d15a852365801b4 inherit pub_types_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the output type of the model.  <br /></td></tr>
<tr class="separator:a8e5acf043e3a76b50d15a852365801b4 inherit pub_types_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fccb0cdf4c0b47afbe5da03532b9b4e inherit pub_types_classshark_1_1_abstract_model" id="r_a7fccb0cdf4c0b47afbe5da03532b9b4e"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_model.html">AbstractModel</a>&lt; InputTypeT, OutputTypeT, <a class="el" href="classshark_1_1_i_parameterizable.html#a2ad5e2e60b2b352988b41f46024d790b">ParameterVectorType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a7fccb0cdf4c0b47afbe5da03532b9b4e">ModelBaseType</a></td></tr>
<tr class="memdesc:a7fccb0cdf4c0b47afbe5da03532b9b4e inherit pub_types_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the BaseType used by the model (this type). Useful for creating derived models.  <br /></td></tr>
<tr class="separator:a7fccb0cdf4c0b47afbe5da03532b9b4e inherit pub_types_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a518304e95092673b7b6438cace052ef6 inherit pub_types_classshark_1_1_abstract_model" id="r_a518304e95092673b7b6438cace052ef6"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt; <a class="el" href="classshark_1_1_abstract_model.html#a714e85d7a6cd2b68898cb5dbb25c37d4">InputType</a> &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a518304e95092673b7b6438cace052ef6">BatchInputType</a></td></tr>
<tr class="memdesc:a518304e95092673b7b6438cace052ef6 inherit pub_types_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">defines the batch type of the input type.  <br /></td></tr>
<tr class="separator:a518304e95092673b7b6438cace052ef6 inherit pub_types_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0c72e230b9a1324c95ba8ac0b07ba13 inherit pub_types_classshark_1_1_abstract_model" id="r_aa0c72e230b9a1324c95ba8ac0b07ba13"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt; <a class="el" href="classshark_1_1_abstract_model.html#a8e5acf043e3a76b50d15a852365801b4">OutputType</a> &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#aa0c72e230b9a1324c95ba8ac0b07ba13">BatchOutputType</a></td></tr>
<tr class="memdesc:aa0c72e230b9a1324c95ba8ac0b07ba13 inherit pub_types_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">defines the batch type of the output type  <br /></td></tr>
<tr class="separator:aa0c72e230b9a1324c95ba8ac0b07ba13 inherit pub_types_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6b242b73aadc63380181fdf4da1db84 inherit pub_types_classshark_1_1_abstract_model" id="r_aa6b242b73aadc63380181fdf4da1db84"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_typed_flags.html">TypedFlags</a>&lt; <a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#aa6b242b73aadc63380181fdf4da1db84">Features</a></td></tr>
<tr class="separator:aa6b242b73aadc63380181fdf4da1db84 inherit pub_types_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48785f538572a695c46b9eec7a4a00f3 inherit pub_types_classshark_1_1_abstract_model" id="r_a48785f538572a695c46b9eec7a4a00f3"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_typed_feature_not_available_exception.html">TypedFeatureNotAvailableException</a>&lt; <a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a48785f538572a695c46b9eec7a4a00f3">FeatureNotAvailableException</a></td></tr>
<tr class="separator:a48785f538572a695c46b9eec7a4a00f3 inherit pub_types_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_i_parameterizable"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_i_parameterizable')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_i_parameterizable.html">shark::IParameterizable&lt; VectorType &gt;</a></td></tr>
<tr class="memitem:a2ad5e2e60b2b352988b41f46024d790b inherit pub_types_classshark_1_1_i_parameterizable" id="r_a2ad5e2e60b2b352988b41f46024d790b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#a2ad5e2e60b2b352988b41f46024d790b">ParameterVectorType</a></td></tr>
<tr class="separator:a2ad5e2e60b2b352988b41f46024d790b inherit pub_types_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3ec26ad400b96e72deb1193cf0ded646" id="r_a3ec26ad400b96e72deb1193cf0ded646"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a3ec26ad400b96e72deb1193cf0ded646">PoolingLayer</a> ()</td></tr>
<tr class="separator:a3ec26ad400b96e72deb1193cf0ded646"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71753baecc299a919837ea62cc339370" id="r_a71753baecc299a919837ea62cc339370"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a71753baecc299a919837ea62cc339370">PoolingLayer</a> (<a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;<a class="el" href="classshark_1_1_pooling_layer.html#a3f05ce81a11201e1d81baa65c61d503d">inputShape</a>, <a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;patchShape, <a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7">Pooling</a> pooling=<a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7a8321e79c278ec510f63675c040594892">Pooling::Maximum</a>, <a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035">Padding</a> padding=<a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035a3ac705f2acd51a4613f9188c05c91d0d">Padding::Valid</a>)</td></tr>
<tr class="separator:a71753baecc299a919837ea62cc339370"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4bf41f8cc10085db920e243a797376e" id="r_ab4bf41f8cc10085db920e243a797376e"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#ab4bf41f8cc10085db920e243a797376e">name</a> () const</td></tr>
<tr class="memdesc:ab4bf41f8cc10085db920e243a797376e"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name.  <br /></td></tr>
<tr class="separator:ab4bf41f8cc10085db920e243a797376e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f05ce81a11201e1d81baa65c61d503d" id="r_a3f05ce81a11201e1d81baa65c61d503d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_shape.html">Shape</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a3f05ce81a11201e1d81baa65c61d503d">inputShape</a> () const</td></tr>
<tr class="memdesc:a3f05ce81a11201e1d81baa65c61d503d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the expected shape of the input.  <br /></td></tr>
<tr class="separator:a3f05ce81a11201e1d81baa65c61d503d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9fb0c664cd068033bf1de655fde6bd3" id="r_ad9fb0c664cd068033bf1de655fde6bd3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_shape.html">Shape</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#ad9fb0c664cd068033bf1de655fde6bd3">outputShape</a> () const</td></tr>
<tr class="memdesc:ad9fb0c664cd068033bf1de655fde6bd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the shape of the output.  <br /></td></tr>
<tr class="separator:ad9fb0c664cd068033bf1de655fde6bd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc8367c726013f74b5b5ab61dd16693a" id="r_afc8367c726013f74b5b5ab61dd16693a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_pooling_layer.html#ac7cdb7122418ae31bef77d22aae75910">ParameterVectorType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#afc8367c726013f74b5b5ab61dd16693a">parameterVector</a> () const</td></tr>
<tr class="memdesc:afc8367c726013f74b5b5ab61dd16693a"><td class="mdescLeft">&#160;</td><td class="mdescRight">obtain the parameter vector  <br /></td></tr>
<tr class="separator:afc8367c726013f74b5b5ab61dd16693a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11d02e430410594e67cc9f09187c172f" id="r_a11d02e430410594e67cc9f09187c172f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a11d02e430410594e67cc9f09187c172f">setParameterVector</a> (<a class="el" href="classshark_1_1_pooling_layer.html#ac7cdb7122418ae31bef77d22aae75910">ParameterVectorType</a> const &amp;newParameters)</td></tr>
<tr class="memdesc:a11d02e430410594e67cc9f09187c172f"><td class="mdescLeft">&#160;</td><td class="mdescRight">overwrite the parameter vector  <br /></td></tr>
<tr class="separator:a11d02e430410594e67cc9f09187c172f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6aca6b57548deb8d4ab9a96f9c283698" id="r_a6aca6b57548deb8d4ab9a96f9c283698"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a6aca6b57548deb8d4ab9a96f9c283698">numberOfParameters</a> () const</td></tr>
<tr class="memdesc:a6aca6b57548deb8d4ab9a96f9c283698"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the number of parameters  <br /></td></tr>
<tr class="separator:a6aca6b57548deb8d4ab9a96f9c283698"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefd4642921dff88b3f8ecde017be2698" id="r_aefd4642921dff88b3f8ecde017be2698"><td class="memItemLeft" align="right" valign="top">boost::shared_ptr&lt; <a class="el" href="structshark_1_1_state.html">State</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#aefd4642921dff88b3f8ecde017be2698">createState</a> () const</td></tr>
<tr class="memdesc:aefd4642921dff88b3f8ecde017be2698"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an internal state of the model.  <br /></td></tr>
<tr class="separator:aefd4642921dff88b3f8ecde017be2698"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae166162c6fb2d7d079d33684ecf7e074" id="r_ae166162c6fb2d7d079d33684ecf7e074"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#ae166162c6fb2d7d079d33684ecf7e074">setStructure</a> (<a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;<a class="el" href="classshark_1_1_pooling_layer.html#a3f05ce81a11201e1d81baa65c61d503d">inputShape</a>, <a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;patchShape, <a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7">Pooling</a> type=<a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7a8321e79c278ec510f63675c040594892">Pooling::Maximum</a>, <a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035">Padding</a> padding=<a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035a3ac705f2acd51a4613f9188c05c91d0d">Padding::Valid</a>)</td></tr>
<tr class="memdesc:ae166162c6fb2d7d079d33684ecf7e074"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the model.  <br /></td></tr>
<tr class="separator:ae166162c6fb2d7d079d33684ecf7e074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb1f1ccede1793a08b2ce69a6e79e026" id="r_adb1f1ccede1793a08b2ce69a6e79e026"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#adb1f1ccede1793a08b2ce69a6e79e026">eval</a> (<a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a> const &amp;inputs, <a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> &amp;outputs, <a class="el" href="structshark_1_1_state.html">State</a> &amp;state) const</td></tr>
<tr class="memdesc:adb1f1ccede1793a08b2ce69a6e79e026"><td class="mdescLeft">&#160;</td><td class="mdescRight">Standard interface for evaluating the response of the model to a batch of patterns.  <br /></td></tr>
<tr class="separator:adb1f1ccede1793a08b2ce69a6e79e026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b7eceac5d8d6c11fa787670b448b5ef" id="r_a7b7eceac5d8d6c11fa787670b448b5ef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a7b7eceac5d8d6c11fa787670b448b5ef">weightedParameterDerivative</a> (<a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a> const &amp;inputs, <a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> const &amp;outputs, <a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> const &amp;coefficients, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, <a class="el" href="classshark_1_1_pooling_layer.html#ac7cdb7122418ae31bef77d22aae75910">ParameterVectorType</a> &amp;gradient) const</td></tr>
<tr class="memdesc:a7b7eceac5d8d6c11fa787670b448b5ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the first derivative w.r.t the parameters and summing them up over all inputs of the last computed batch.  <br /></td></tr>
<tr class="separator:a7b7eceac5d8d6c11fa787670b448b5ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32d46299f9d8e89f241518efa2cdfd0f" id="r_a32d46299f9d8e89f241518efa2cdfd0f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a32d46299f9d8e89f241518efa2cdfd0f">weightedInputDerivative</a> (<a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a> const &amp;inputs, <a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> const &amp;outputs, <a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> const &amp;coefficients, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, <a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a> &amp;derivative) const</td></tr>
<tr class="memdesc:a32d46299f9d8e89f241518efa2cdfd0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the first derivative w.r.t the inputs and summs them up over all inputs of the last computed batch.  <br /></td></tr>
<tr class="separator:a32d46299f9d8e89f241518efa2cdfd0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7844e7de771788a2cd7b8811b45f98b8" id="r_a7844e7de771788a2cd7b8811b45f98b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a7844e7de771788a2cd7b8811b45f98b8">read</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive)</td></tr>
<tr class="memdesc:a7844e7de771788a2cd7b8811b45f98b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality.">ISerializable</a>.  <br /></td></tr>
<tr class="separator:a7844e7de771788a2cd7b8811b45f98b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90ee269f47474aabce23f512e82507e4" id="r_a90ee269f47474aabce23f512e82507e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_pooling_layer.html#a90ee269f47474aabce23f512e82507e4">write</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive) const</td></tr>
<tr class="memdesc:a90ee269f47474aabce23f512e82507e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality.">ISerializable</a>.  <br /></td></tr>
<tr class="separator:a90ee269f47474aabce23f512e82507e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_model"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_model')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_model.html">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a></td></tr>
<tr class="memitem:a0b7aeb13b70c8d4cffc4958e6583627c inherit pub_methods_classshark_1_1_abstract_model" id="r_a0b7aeb13b70c8d4cffc4958e6583627c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a0b7aeb13b70c8d4cffc4958e6583627c">AbstractModel</a> ()</td></tr>
<tr class="separator:a0b7aeb13b70c8d4cffc4958e6583627c inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad07313494d4f88c8294410d0c77d80b7 inherit pub_methods_classshark_1_1_abstract_model" id="r_ad07313494d4f88c8294410d0c77d80b7"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#ad07313494d4f88c8294410d0c77d80b7">~AbstractModel</a> ()</td></tr>
<tr class="separator:ad07313494d4f88c8294410d0c77d80b7 inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a234570c3bc1f1fdf06e67ecc4751fa24 inherit pub_methods_classshark_1_1_abstract_model" id="r_a234570c3bc1f1fdf06e67ecc4751fa24"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classshark_1_1_abstract_model.html#aa6b242b73aadc63380181fdf4da1db84">Features</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a234570c3bc1f1fdf06e67ecc4751fa24">features</a> () const</td></tr>
<tr class="separator:a234570c3bc1f1fdf06e67ecc4751fa24 inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8cb877bb0c6b8e713e852f9057a6eae inherit pub_methods_classshark_1_1_abstract_model" id="r_af8cb877bb0c6b8e713e852f9057a6eae"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#af8cb877bb0c6b8e713e852f9057a6eae">updateFeatures</a> ()</td></tr>
<tr class="separator:af8cb877bb0c6b8e713e852f9057a6eae inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae04810c1ae40f816872eba4ef3953e36 inherit pub_methods_classshark_1_1_abstract_model" id="r_ae04810c1ae40f816872eba4ef3953e36"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#ae04810c1ae40f816872eba4ef3953e36">hasFirstParameterDerivative</a> () const</td></tr>
<tr class="memdesc:ae04810c1ae40f816872eba4ef3953e36 inherit pub_methods_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true when the first parameter derivative is implemented.  <br /></td></tr>
<tr class="separator:ae04810c1ae40f816872eba4ef3953e36 inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1092b50b56555e8f2e8b4d4aa57eb3c3 inherit pub_methods_classshark_1_1_abstract_model" id="r_a1092b50b56555e8f2e8b4d4aa57eb3c3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a1092b50b56555e8f2e8b4d4aa57eb3c3">hasFirstInputDerivative</a> () const</td></tr>
<tr class="memdesc:a1092b50b56555e8f2e8b4d4aa57eb3c3 inherit pub_methods_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true when the first input derivative is implemented.  <br /></td></tr>
<tr class="separator:a1092b50b56555e8f2e8b4d4aa57eb3c3 inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7edef74da55322b6aef0ba65b08592d inherit pub_methods_classshark_1_1_abstract_model" id="r_ac7edef74da55322b6aef0ba65b08592d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#ac7edef74da55322b6aef0ba65b08592d">eval</a> (<a class="el" href="classshark_1_1_abstract_model.html#a518304e95092673b7b6438cace052ef6">BatchInputType</a> const &amp;patterns, <a class="el" href="classshark_1_1_abstract_model.html#aa0c72e230b9a1324c95ba8ac0b07ba13">BatchOutputType</a> &amp;outputs) const</td></tr>
<tr class="memdesc:ac7edef74da55322b6aef0ba65b08592d inherit pub_methods_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Standard interface for evaluating the response of the model to a batch of patterns.  <br /></td></tr>
<tr class="separator:ac7edef74da55322b6aef0ba65b08592d inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a331290a6cb2840663d2178899366c8 inherit pub_methods_classshark_1_1_abstract_model" id="r_a3a331290a6cb2840663d2178899366c8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a3a331290a6cb2840663d2178899366c8">eval</a> (<a class="el" href="classshark_1_1_abstract_model.html#a714e85d7a6cd2b68898cb5dbb25c37d4">InputType</a> const &amp;pattern, <a class="el" href="classshark_1_1_abstract_model.html#a8e5acf043e3a76b50d15a852365801b4">OutputType</a> &amp;output) const</td></tr>
<tr class="memdesc:a3a331290a6cb2840663d2178899366c8 inherit pub_methods_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Standard interface for evaluating the response of the model to a single pattern.  <br /></td></tr>
<tr class="separator:a3a331290a6cb2840663d2178899366c8 inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b69168617355ebbd470caf2393a541f inherit pub_methods_classshark_1_1_abstract_model" id="r_a0b69168617355ebbd470caf2393a541f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_abstract_model.html#a8e5acf043e3a76b50d15a852365801b4">OutputType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a0b69168617355ebbd470caf2393a541f">operator()</a> (<a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_abstract_model.html#a714e85d7a6cd2b68898cb5dbb25c37d4">InputType</a> &gt; const &amp;patterns) const</td></tr>
<tr class="memdesc:a0b69168617355ebbd470caf2393a541f inherit pub_methods_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Model evaluation as an operator for a whole dataset. This is a convenience function.  <br /></td></tr>
<tr class="separator:a0b69168617355ebbd470caf2393a541f inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78b0b0517a53c93013b9372292f73a78 inherit pub_methods_classshark_1_1_abstract_model" id="r_a78b0b0517a53c93013b9372292f73a78"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_model.html#a8e5acf043e3a76b50d15a852365801b4">OutputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a78b0b0517a53c93013b9372292f73a78">operator()</a> (<a class="el" href="classshark_1_1_abstract_model.html#a714e85d7a6cd2b68898cb5dbb25c37d4">InputType</a> const &amp;pattern) const</td></tr>
<tr class="memdesc:a78b0b0517a53c93013b9372292f73a78 inherit pub_methods_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Model evaluation as an operator for a single pattern. This is a convenience function.  <br /></td></tr>
<tr class="separator:a78b0b0517a53c93013b9372292f73a78 inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa10f381b3bd678c82a600c5bc6ac0ec3 inherit pub_methods_classshark_1_1_abstract_model" id="r_aa10f381b3bd678c82a600c5bc6ac0ec3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_model.html#aa0c72e230b9a1324c95ba8ac0b07ba13">BatchOutputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#aa10f381b3bd678c82a600c5bc6ac0ec3">operator()</a> (<a class="el" href="classshark_1_1_abstract_model.html#a518304e95092673b7b6438cace052ef6">BatchInputType</a> const &amp;patterns) const</td></tr>
<tr class="memdesc:aa10f381b3bd678c82a600c5bc6ac0ec3 inherit pub_methods_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">Model evaluation as an operator for a single pattern. This is a convenience function.  <br /></td></tr>
<tr class="separator:aa10f381b3bd678c82a600c5bc6ac0ec3 inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb4966b597013417b5e9957c84485c8c inherit pub_methods_classshark_1_1_abstract_model" id="r_adb4966b597013417b5e9957c84485c8c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#adb4966b597013417b5e9957c84485c8c">weightedDerivatives</a> (<a class="el" href="classshark_1_1_abstract_model.html#a518304e95092673b7b6438cace052ef6">BatchInputType</a> const &amp;patterns, <a class="el" href="classshark_1_1_abstract_model.html#aa0c72e230b9a1324c95ba8ac0b07ba13">BatchOutputType</a> const &amp;outputs, <a class="el" href="classshark_1_1_abstract_model.html#aa0c72e230b9a1324c95ba8ac0b07ba13">BatchOutputType</a> const &amp;coefficients, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, <a class="el" href="classshark_1_1_i_parameterizable.html#a2ad5e2e60b2b352988b41f46024d790b">ParameterVectorType</a> &amp;parameterDerivative, <a class="el" href="classshark_1_1_abstract_model.html#a518304e95092673b7b6438cace052ef6">BatchInputType</a> &amp;inputDerivative) const</td></tr>
<tr class="memdesc:adb4966b597013417b5e9957c84485c8c inherit pub_methods_classshark_1_1_abstract_model"><td class="mdescLeft">&#160;</td><td class="mdescRight">calculates weighted input and parameter derivative at the same time  <br /></td></tr>
<tr class="separator:adb4966b597013417b5e9957c84485c8c inherit pub_methods_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_parameterizable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_parameterizable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_parameterizable.html">shark::IParameterizable&lt; VectorType &gt;</a></td></tr>
<tr class="memitem:a9e3a11172e74d1aa7292f3de4e2b6ebc inherit pub_methods_classshark_1_1_i_parameterizable" id="r_a9e3a11172e74d1aa7292f3de4e2b6ebc"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#a9e3a11172e74d1aa7292f3de4e2b6ebc">~IParameterizable</a> ()</td></tr>
<tr class="separator:a9e3a11172e74d1aa7292f3de4e2b6ebc inherit pub_methods_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_nameable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_nameable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_nameable.html">shark::INameable</a></td></tr>
<tr class="memitem:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable" id="r_a877dbdfc6b58ea836495143cea44a98c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a877dbdfc6b58ea836495143cea44a98c">~INameable</a> ()</td></tr>
<tr class="separator:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_serializable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_serializable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_serializable.html">shark::ISerializable</a></td></tr>
<tr class="memitem:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable" id="r_a7baa9ce108d7278822297ce15882782a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a7baa9ce108d7278822297ce15882782a">~ISerializable</a> ()</td></tr>
<tr class="memdesc:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual d'tor.  <br /></td></tr>
<tr class="separator:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable" id="r_abdda0c5b8e065b8afbac2cba8f58e841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#abdda0c5b8e065b8afbac2cba8f58e841">load</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive, unsigned int version)</td></tr>
<tr class="memdesc:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned loading of components, calls read(...).  <br /></td></tr>
<tr class="separator:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable" id="r_a5bf66fa8db15cc529bec98976a2f5255"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a5bf66fa8db15cc529bec98976a2f5255">save</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive, unsigned int version) const</td></tr>
<tr class="memdesc:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned storing of components, calls write(...).  <br /></td></tr>
<tr class="separator:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable" id="r_a4560a94e8f4908fe8627e41e7d965735"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a4560a94e8f4908fe8627e41e7d965735">BOOST_SERIALIZATION_SPLIT_MEMBER</a> ()</td></tr>
<tr class="separator:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classshark_1_1_abstract_model"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classshark_1_1_abstract_model')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classshark_1_1_abstract_model.html">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a></td></tr>
<tr class="memitem:a4c5a689901083e50007f53de72f694fc inherit pro_attribs_classshark_1_1_abstract_model" id="r_a4c5a689901083e50007f53de72f694fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_model.html#aa6b242b73aadc63380181fdf4da1db84">Features</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_model.html#a4c5a689901083e50007f53de72f694fc">m_features</a></td></tr>
<tr class="separator:a4c5a689901083e50007f53de72f694fc inherit pro_attribs_classshark_1_1_abstract_model"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> = RealVector&gt;<br />
class shark::PoolingLayer&lt; VectorType &gt;</div><p>Performs Pooling operations for a given input image. </p>
<p>Pooling partitions the input images in rectangular regions, typically 2x2 and computes a statistic over the data. This could for example be the maximum or average of values. This is done channel-by-channel. The output is a smaller image where each pixel includes for each channel the computed statistic. Therefore, if the patch is 2x2 the output image will have half width and height. </p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00056">56</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="af1c3bf01a5867b9c2cea965b3f5e5d2b" name="af1c3bf01a5867b9c2cea965b3f5e5d2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1c3bf01a5867b9c2cea965b3f5e5d2b">&#9670;&#160;</a></span>BatchInputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_model.html#a518304e95092673b7b6438cace052ef6">base_type::BatchInputType</a> <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::BatchInputType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00061">61</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<a id="a66639a814abf022b6935327f880f6f31" name="a66639a814abf022b6935327f880f6f31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66639a814abf022b6935327f880f6f31">&#9670;&#160;</a></span>BatchOutputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_model.html#aa0c72e230b9a1324c95ba8ac0b07ba13">base_type::BatchOutputType</a> <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::BatchOutputType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00062">62</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<a id="ac7cdb7122418ae31bef77d22aae75910" name="ac7cdb7122418ae31bef77d22aae75910"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7cdb7122418ae31bef77d22aae75910">&#9670;&#160;</a></span>ParameterVectorType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_i_parameterizable.html#a2ad5e2e60b2b352988b41f46024d790b">base_type::ParameterVectorType</a> <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::ParameterVectorType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00063">63</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3ec26ad400b96e72deb1193cf0ded646" name="a3ec26ad400b96e72deb1193cf0ded646"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ec26ad400b96e72deb1193cf0ded646">&#9670;&#160;</a></span>PoolingLayer() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::PoolingLayer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00065">65</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829a82b5c22e1b95f20aff01b4b39e86c607">shark::AbstractModel&lt; VectorType, VectorType, VectorType &gt;::HAS_FIRST_INPUT_DERIVATIVE</a>, <a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829a89a819e2614f818baa23c5c8fdd4393d">shark::AbstractModel&lt; VectorType, VectorType, VectorType &gt;::HAS_FIRST_PARAMETER_DERIVATIVE</a>, and <a class="el" href="classshark_1_1_abstract_model.html#a4c5a689901083e50007f53de72f694fc">shark::AbstractModel&lt; VectorType, VectorType, VectorType &gt;::m_features</a>.</p>

</div>
</div>
<a id="a71753baecc299a919837ea62cc339370" name="a71753baecc299a919837ea62cc339370"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71753baecc299a919837ea62cc339370">&#9670;&#160;</a></span>PoolingLayer() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::PoolingLayer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;&#160;</td>
          <td class="paramname"><em>inputShape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;&#160;</td>
          <td class="paramname"><em>patchShape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7">Pooling</a>&#160;</td>
          <td class="paramname"><em>pooling</em> = <code><a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7a8321e79c278ec510f63675c040594892">Pooling::Maximum</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035">Padding</a>&#160;</td>
          <td class="paramname"><em>padding</em> = <code><a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035a3ac705f2acd51a4613f9188c05c91d0d">Padding::Valid</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00070">70</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829a82b5c22e1b95f20aff01b4b39e86c607">shark::AbstractModel&lt; VectorType, VectorType, VectorType &gt;::HAS_FIRST_INPUT_DERIVATIVE</a>, <a class="el" href="classshark_1_1_abstract_model.html#a76a2d024b6013037b072596fe4f9f829a89a819e2614f818baa23c5c8fdd4393d">shark::AbstractModel&lt; VectorType, VectorType, VectorType &gt;::HAS_FIRST_PARAMETER_DERIVATIVE</a>, <a class="el" href="classshark_1_1_pooling_layer.html#a3f05ce81a11201e1d81baa65c61d503d">shark::PoolingLayer&lt; VectorType &gt;::inputShape()</a>, <a class="el" href="classshark_1_1_abstract_model.html#a4c5a689901083e50007f53de72f694fc">shark::AbstractModel&lt; VectorType, VectorType, VectorType &gt;::m_features</a>, and <a class="el" href="classshark_1_1_pooling_layer.html#ae166162c6fb2d7d079d33684ecf7e074">shark::PoolingLayer&lt; VectorType &gt;::setStructure()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aefd4642921dff88b3f8ecde017be2698" name="aefd4642921dff88b3f8ecde017be2698"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefd4642921dff88b3f8ecde017be2698">&#9670;&#160;</a></span>createState()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boost::shared_ptr&lt; <a class="el" href="structshark_1_1_state.html">State</a> &gt; <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::createState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates an internal state of the model. </p>
<p>The state is needed when the derivatives are to be calculated. Eval can store a state which is then reused to speed up the calculations of the derivatives. This also allows eval to be evaluated in parallel! </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_abstract_model.html#a47d80a74ce80e5dd5e2851c52738b86b">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00103">103</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<a id="adb1f1ccede1793a08b2ce69a6e79e026" name="adb1f1ccede1793a08b2ce69a6e79e026"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb1f1ccede1793a08b2ce69a6e79e026">&#9670;&#160;</a></span>eval()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::eval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>patterns</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> &amp;&#160;</td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_state.html">State</a> &amp;&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Standard interface for evaluating the response of the model to a batch of patterns. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">patterns</td><td>the inputs of the model </td></tr>
    <tr><td class="paramname">outputs</td><td>the predictions or response of the model to every pattern </td></tr>
    <tr><td class="paramname">state</td><td>intermediate results stored by eval which can be reused for derivative computation. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classshark_1_1_abstract_model.html#af6b99ab56d362609a144764922b4bd7b">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00132">132</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7a8321e79c278ec510f63675c040594892">shark::Maximum</a>, <a class="el" href="classshark_1_1_shape.html#ad36fc62c674b01150cc5addab9dcc38d">shark::Shape::numElements()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a3f05ce81a11201e1d81baa65c61d503d" name="a3f05ce81a11201e1d81baa65c61d503d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f05ce81a11201e1d81baa65c61d503d">&#9670;&#160;</a></span>inputShape()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_shape.html">Shape</a> <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::inputShape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the expected shape of the input. </p>

<p>Implements <a class="el" href="classshark_1_1_abstract_model.html#a56391736859ddea5d1011d2248431b47">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00080">80</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_pooling_layer.html#a71753baecc299a919837ea62cc339370">shark::PoolingLayer&lt; VectorType &gt;::PoolingLayer()</a>, and <a class="el" href="classshark_1_1_pooling_layer.html#ae166162c6fb2d7d079d33684ecf7e074">shark::PoolingLayer&lt; VectorType &gt;::setStructure()</a>.</p>

</div>
</div>
<a id="ab4bf41f8cc10085db920e243a797376e" name="ab4bf41f8cc10085db920e243a797376e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4bf41f8cc10085db920e243a797376e">&#9670;&#160;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">shark::INameable</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00077">77</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<a id="a6aca6b57548deb8d4ab9a96f9c283698" name="a6aca6b57548deb8d4ab9a96f9c283698"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6aca6b57548deb8d4ab9a96f9c283698">&#9670;&#160;</a></span>numberOfParameters()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::numberOfParameters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>returns the number of parameters </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_parameterizable.html#aed1e8d1d4dbde387e2f6a25141ed3a20">shark::IParameterizable&lt; VectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00099">99</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<a id="ad9fb0c664cd068033bf1de655fde6bd3" name="ad9fb0c664cd068033bf1de655fde6bd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9fb0c664cd068033bf1de655fde6bd3">&#9670;&#160;</a></span>outputShape()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_shape.html">Shape</a> <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::outputShape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the shape of the output. </p>

<p>Implements <a class="el" href="classshark_1_1_abstract_model.html#a54b8655a750489902560a5eb32ba5b4b">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00084">84</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="_m_n_i_s_t_for_experts_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="afc8367c726013f74b5b5ab61dd16693a" name="afc8367c726013f74b5b5ab61dd16693a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc8367c726013f74b5b5ab61dd16693a">&#9670;&#160;</a></span>parameterVector()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_pooling_layer.html#ac7cdb7122418ae31bef77d22aae75910">ParameterVectorType</a> <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::parameterVector </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>obtain the parameter vector </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_parameterizable.html#afaa2ba692ab64a0edbff60d7ee6794db">shark::IParameterizable&lt; VectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00089">89</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<a id="a7844e7de771788a2cd7b8811b45f98b8" name="a7844e7de771788a2cd7b8811b45f98b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7844e7de771788a2cd7b8811b45f98b8">&#9670;&#160;</a></span>read()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;&#160;</td>
          <td class="paramname"><em>archive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality.">ISerializable</a>. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_abstract_model.html#a11203dd6f50218e4c341a5d24ff5d543">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00173">173</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<a id="a11d02e430410594e67cc9f09187c172f" name="a11d02e430410594e67cc9f09187c172f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11d02e430410594e67cc9f09187c172f">&#9670;&#160;</a></span>setParameterVector()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::setParameterVector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#ac7cdb7122418ae31bef77d22aae75910">ParameterVectorType</a> const &amp;&#160;</td>
          <td class="paramname"><em>newParameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>overwrite the parameter vector </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_parameterizable.html#ad5e35d1a10ff36fa72ea787baa40e9ad">shark::IParameterizable&lt; VectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00094">94</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">References <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="ae166162c6fb2d7d079d33684ecf7e074" name="ae166162c6fb2d7d079d33684ecf7e074"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae166162c6fb2d7d079d33684ecf7e074">&#9670;&#160;</a></span>setStructure()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::setStructure </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;&#160;</td>
          <td class="paramname"><em>inputShape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_shape.html">Shape</a> const &amp;&#160;</td>
          <td class="paramname"><em>patchShape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7">Pooling</a>&#160;</td>
          <td class="paramname"><em>type</em> = <code><a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7a8321e79c278ec510f63675c040594892">Pooling::Maximum</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035">Padding</a>&#160;</td>
          <td class="paramname"><em>padding</em> = <code><a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035a3ac705f2acd51a4613f9188c05c91d0d">Padding::Valid</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Configures the model. </p>
<ul>
<li>inputShape <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the image imHeight x imWidth x channel </li>
<li>outputShape <a class="el" href="classshark_1_1_shape.html" title="Represents the Shape of an input or output.">Shape</a> of the resized output imHeight x imWidth </li>
<li>type Type of interpolation to perform, default is Spline-Interpolation </li>
</ul>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00112">112</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_pooling_layer.html#a3f05ce81a11201e1d81baa65c61d503d">shark::PoolingLayer&lt; VectorType &gt;::inputShape()</a>, <a class="el" href="_exception_8h.html#adce1f80097c69010f5eab2618fa2e971">SHARK_RUNTIME_CHECK</a>, and <a class="el" href="namespaceshark.html#a7d0c8762c37c217fdb30def7e3059035a3ac705f2acd51a4613f9188c05c91d0d">shark::Valid</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_pooling_layer.html#a71753baecc299a919837ea62cc339370">shark::PoolingLayer&lt; VectorType &gt;::PoolingLayer()</a>.</p>

</div>
</div>
<a id="a32d46299f9d8e89f241518efa2cdfd0f" name="a32d46299f9d8e89f241518efa2cdfd0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32d46299f9d8e89f241518efa2cdfd0f">&#9670;&#160;</a></span>weightedInputDerivative()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::weightedInputDerivative </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>coefficients</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_state.html">State</a> const &amp;&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a> &amp;&#160;</td>
          <td class="paramname"><em>derivative</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Calculates the first derivative w.r.t the inputs and summs them up over all inputs of the last computed batch. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_abstract_model.html#a3c192dedb474c5a8e39b1f46d99f94cc">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00155">155</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a58d5e1481bf50cfa0889dcbd44900ab7a8321e79c278ec510f63675c040594892">shark::Maximum</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a7b7eceac5d8d6c11fa787670b448b5ef" name="a7b7eceac5d8d6c11fa787670b448b5ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b7eceac5d8d6c11fa787670b448b5ef">&#9670;&#160;</a></span>weightedParameterDerivative()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::weightedParameterDerivative </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#af1c3bf01a5867b9c2cea965b3f5e5d2b">BatchInputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#a66639a814abf022b6935327f880f6f31">BatchOutputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>coefficients</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_state.html">State</a> const &amp;&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_pooling_layer.html#ac7cdb7122418ae31bef77d22aae75910">ParameterVectorType</a> &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Calculates the first derivative w.r.t the parameters and summing them up over all inputs of the last computed batch. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_abstract_model.html#ad699b6b1f813c5cc3b3ed45f254dbc1d">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00143">143</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

<p class="reference">References <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a90ee269f47474aabce23f512e82507e4" name="a90ee269f47474aabce23f512e82507e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90ee269f47474aabce23f512e82507e4">&#9670;&#160;</a></span>write()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_pooling_layer.html">shark::PoolingLayer</a>&lt; <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a> &gt;::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;&#160;</td>
          <td class="paramname"><em>archive</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality.">ISerializable</a>. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_abstract_model.html#a7d3f3d4d781954dc43d6cd445a5b56b4">shark::AbstractModel&lt; InputTypeT, OutputTypeT, ParameterVectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_pooling_layer_8h_source.html#l00181">181</a> of file <a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Models/<a class="el" href="_pooling_layer_8h_source.html">PoolingLayer.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
